{% extends "template/listEdit.volt" %}

{% block title %}质保记录{% endblock %}


{% block filter %}
    <div class="col-md-4 col-sm-6 col-xs-12">
        <table>
            <tr>
                <th>飞机编号:</th>
                <td><input type="text" name="uas_serial_id" value=""></td>
            </tr>
        </table>
    </div>
    <div class="col-md-4 col-sm-6 col-xs-12">
        <table>
            <tr>
                <th>子系统名称:</th>
                <td><input type="text" name="system_name" value=""></td>
            </tr>
        </table>
    </div>
    <div class="col-md-4 col-sm-6 col-xs-12">
        <table>
            <tr>
                <td colspan="2">
                    <div id="btn_reset_param" class="btn-0 button">重 置</div>
                    <div id="btn_search_data" class="btn-1 button">过 滤</div>
                </td>
            </tr>
        </table>
    </div>
{% endblock %}

{% block hiddenOperation %}hidden{% endblock %}

{% block jscontent %}
    <script>

        function actionDelete(tag) {
            var result = confirm("您确定删除该记录?");
            if (result) {
                $.post("/subsystem/doDelete", {
                    "id": tag
                }, function (result) {

                    PageDataProxy.refresh();
                });
            }

        }


        $(function () {
        	PageDataProxy.init({
                "url": "/notification/warrantyRecord",
                "table_id": "#mytable",
                "page_control_id": "#data-wrap",
                "page_size_id": "#rows-perpage-select",
                "page_total_id": "#data_count_total",
                "use_check_box": false,
                "data_field_process": function (name, value) {
                    return value;
                },
                "table_style": {
                    "id": "width-s",
                    "system_name": "width-m",
                    "uas_serial_id": "width-150",
                    "warranty_at": "width-m",
                    "warranty_kilometer": "width-s",
                    "insurance_at": "width-m",
                    "fuselage_at": "width-m",
                    "maintain_kilometer": "width-s",
                    "created_at": "width-m"
                },

            });

        })
    </script>
{% endblock %}